const { questionsModel } = require("../models/questionsModel");
const mongoose = require('mongoose');



async function getAllTest(req, res, next) {
    const { KnowledgePointId } = req.body;
    let questions=await questionsModel.find({KnowledgePointId:KnowledgePointId});
    res.send(questions);
}


module.exports = {
    getAllTest
}